Component({
    properties: {
        listData: {
            type: Array,
            default: null
        },
        allData: {
            type: Object,
            default: null
        },
        num: {
            type: Number,
            default: 1
        },
        selectedTime: {
            type: String,
            default: ""
        }
    },
    data: {
        animationData: {},
        showDialog: !1,
        showDate: !0,
        packages: !0
    },
    methods: {
        show: function() {
            var t = this, a = wx.createAnimation({
                duration: 300,
                timingFunction: "ease"
            });
            t.animation = a, a.translateY(900).step(), t.setData({
                animationData: a.export(),
                showDialog: !0
            }), setTimeout(function() {
                a.translateY(0).step(), t.setData({
                    animationData: a.export()
                });
            }, 200);
        },
        hide: function() {
            var t = this, a = wx.createAnimation({
                duration: 300,
                timingFunction: "ease"
            });
            t.animation = a, a.translateY(900).step(), t.setData({
                animationData: a.export()
            }), setTimeout(function() {
                a.translateY(0).step(), t.setData({
                    animationData: a.export(),
                    showDialog: !1
                });
            }, 200);
        },
        _closeTap: function() {
            this.hide();
        },
        _reduce: function() {
            this.triggerEvent("reduce");
        },
        _add: function() {
            this.triggerEvent("add");
        },
        _buyPkgTap: function() {
            this.triggerEvent("buyPkgTap");
        },
        addItem: function() {
            this.triggerEvent("addItem");
        },
        _getChildDate: function(t) {
            this.triggerEvent("getChildDate", t.detail);
        }
    },
    lifetimes: {
        attached: function() {
            this.selectComponent("#hospitalDateList").powerDrawer(this.data.showDate);
        }
    }
});